home *** CD-ROM | disk | FTP | other *** search
/ Clickx 53 / Clickx 53.iso / software / onmisbaretool / feedreaderv313 / stylesheet / debug.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2008-01-01  |  6.1 KB  |  241 lines

  1. ∩╗┐<?xml version="1.0" ?>
  2.  
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4.                 xmlns:feed="http://www.w3.org/2005/Atom"
  5.                 xmlns:frc="http://www.feedreader.com/ns/3.0/frc"
  6.                 xmlns:fr="http://www.feedreader.com/ns/3.0"
  7.                 version="1.0">
  8. <xsl:output method="html" />
  9.  
  10. <xsl:template match="/">
  11.  
  12. <html>
  13.   <head>
  14.     <title><xsl:value-of select="/feed:feed/feed:title"/></title>
  15.     <link rel="stylesheet" href="atom.css"/>
  16.     <style>
  17.  
  18. body {
  19.  font-family: verdana, tahoma;
  20.  font-size: 0.7em;
  21.  line-height: 1.3em;
  22.  padding: 0;
  23.  margin: 0;
  24. }
  25.  
  26.  
  27. a, a:link, a:active, a:visited {
  28.  text-decoration: none;
  29.  color: #0088ff;
  30. }
  31.  
  32. div.entry {
  33.  padding: 0 20px 20px 25px;
  34.  border-bottom: 1px solid #ddd;
  35. }
  36.  
  37. div.content img {
  38. }
  39.  
  40. div.active {
  41.  background-color: #f1f5fa;;
  42. }
  43.  
  44. .read .title a {
  45.  color: #aaa;
  46. }
  47.  
  48.  
  49. .read .content {
  50.  color: #555;
  51. }
  52.  
  53. div.entry .read .title a {
  54.  color: gray;
  55. }
  56.  
  57. .header {
  58.  padding-top: 20px;
  59.  margin: 0 0 0.2em 0;
  60. }
  61.  
  62. .title {
  63.  font-size: 1.6em;
  64.  font-family: arial, verdana, tahoma;
  65.  font-weight: bold;
  66.  letter-spacing: -1px;
  67.  line-height: 1.1em;
  68. }
  69.  
  70. div.details {
  71.  color: gray;
  72.  margin-bottom: 0.5em;
  73. }
  74. div.clear {
  75.  clear:both;
  76.  height: 1px;
  77.  width: 1px;
  78.  font-size: 1px;
  79.  line-height: 1px;
  80. }
  81. span.modified, span.author, span.category {
  82. }
  83.  
  84. .status a {
  85.  display:block;
  86.  line-height: 0;
  87.  font-size: 0;
  88.  width: 8px; 
  89.  height: 8px;
  90.  margin-top: -1.5em;
  91.  background-image: url('<xsl:value-of select="/feed:feed/fr:imagebase"/>stylesheet/unread_8x8.png');
  92.  background-repeat: no-repeat;
  93. }
  94.  
  95. .read .status a {
  96.  background-image: url('<xsl:value-of select="/feed:feed/fr:imagebase"/>stylesheet/read_8x8.png');
  97. }
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104. </style>
  105. <base>    
  106. <xsl:attribute name="href"><xsl:value-of select="/feed:feed/feed:entry/feed:source/feed:link[@rel='alternate'][1]/@href"/>/</xsl:attribute>
  107. </base> 
  108.   </head>    
  109.   <body>
  110. <div class="content">
  111. <xsl:for-each select="//namespace::frc[parent::*[contains(name(),'frc:')]]">
  112. <b>TAG </b> <xsl:value-of select="name(parent::node())"/> <b> VALUE IS </b> <xsl:value-of select="parent::*"/><br/>
  113. </xsl:for-each>
  114. </div>
  115.   <script type="text/javascript">
  116.   var imagebase='file://<xsl:value-of select="/feed:feed/fr:imagebase"/>';
  117.   </script>
  118.   <xsl:apply-templates select="feed:feed"/>
  119.   </body>
  120. </html>
  121. </xsl:template>
  122.  
  123. <xsl:template match="feed:feed">
  124.   <xsl:apply-templates select="feed:entry"/>
  125. </xsl:template>
  126.  
  127. <xsl:template match="feed:entry">
  128.  
  129.     <div class="entry">
  130.         <xsl:attribute name="id">article<xsl:value-of select="fr:item_id"/></xsl:attribute>
  131.         <xsl:if test="fr:rtlEnabled = 1">
  132.             <xsl:attribute name="style">direction:RTL;font-size: 1.1em;font-family: tahoma;</xsl:attribute>
  133.         </xsl:if>
  134.         <xsl:if test="fr:status = 1">
  135.             <xsl:attribute name="class">entry read</xsl:attribute>
  136.         </xsl:if>
  137.                 
  138.         <div class="header">
  139.  
  140.         <span class="title">
  141.         <xsl:choose>
  142.                 <xsl:when test="string-length(feed:link/@href)>0">
  143.               <a>
  144.             <xsl:attribute name="href"><xsl:value-of select="feed:link/@href"/></xsl:attribute>
  145.             <xsl:value-of select="feed:title"/>
  146.             </a>
  147.                 </xsl:when>
  148.                 <xsl:otherwise>
  149.             <xsl:value-of select="feed:title"/>
  150.                 </xsl:otherwise>
  151.                  </xsl:choose>
  152.         </span>
  153.  
  154.           <span class="status">
  155.           <xsl:attribute name="style">float:right;</xsl:attribute>
  156.           <xsl:if test="fr:rtlEnabled = 1">
  157.             <xsl:attribute name="style">float:left;</xsl:attribute>
  158.           </xsl:if>
  159.           <xsl:if test="fr:rtlEnabled != 1">
  160.             <xsl:attribute name="style">float:right;</xsl:attribute>
  161.           </xsl:if>
  162.           
  163.           <a>
  164.              
  165.           <xsl:attribute name="id">togglelink<xsl:value-of select="fr:item_id"/></xsl:attribute>
  166.             <xsl:attribute name="href">fr:toggleread/<xsl:value-of select="fr:item_id"/></xsl:attribute>
  167.           <xsl:attribute name="onclick">this.blur();</xsl:attribute>
  168.                    
  169.           </a>
  170.           </span>
  171.         </div>
  172.     
  173.                 <div class="details">
  174.              <span class="updated"><xsl:value-of select="fr:updated"/>, </span>        
  175.             <xsl:if test="feed:author"> 
  176.                   <span class="author">
  177.                 <xsl:apply-templates select="feed:author"/>
  178.                 </span>
  179.             </xsl:if>
  180.             <a>
  181.             <xsl:attribute name="href">fr:edittags/<xsl:value-of select="fr:item_id"/></xsl:attribute>
  182.  
  183.             <img>
  184.             <xsl:attribute name="border">0</xsl:attribute>
  185.             <xsl:attribute name="hspace">5</xsl:attribute>
  186.             <xsl:attribute name="src">file://<xsl:value-of select="/feed:feed/fr:imagebase"/>stylesheet/tag_edit.png</xsl:attribute>
  187.             </img>
  188.             </a>
  189.                         
  190.             <xsl:if test="feed:category">
  191.                   <span class="category"> 
  192.                   <xsl:apply-templates select="feed:category"/>
  193.                 </span>
  194.                     </xsl:if>
  195.             <xsl:if test="feed:source">
  196.                   <span class="source"> 
  197.                 <a>
  198.                 <xsl:attribute name="href">fr:feed/<xsl:value-of select="feed:source/fr:feed_id"/></xsl:attribute>
  199.                 <xsl:value-of select="feed:source/feed:title"/>
  200.                 </a>
  201.                 <a>
  202.                 <xsl:attribute name="href">
  203.                 <!-- <xsl:for-each select = "feed:source/feed:link[@rel='alternate']"> --> 
  204.                     <xsl:value-of select = "feed:source/feed:link[@rel='alternate'][1]/@href"/> 
  205.                     <!-- </xsl:for-each> -->
  206.                 </xsl:attribute>
  207.                       
  208.             <img>
  209.             <xsl:attribute name="border">0</xsl:attribute>
  210.             <xsl:attribute name="hspace">5</xsl:attribute>
  211.             <xsl:attribute name="src">file://<xsl:value-of select="/feed:feed/fr:imagebase"/>stylesheet/world_go.png</xsl:attribute>
  212.             </img>
  213.                 </a>                                  
  214.                 </span>
  215.                                 
  216.                     </xsl:if>
  217.         </div>
  218.  
  219.     <xsl:if test="feed:content">
  220.         <div class="content">
  221.             <xsl:value-of disable-output-escaping="yes" select="feed:content"/>
  222.         </div>
  223.     </xsl:if>
  224.     <div class="clear" />
  225.     </div>
  226.  
  227. </xsl:template>
  228.  
  229. <xsl:template match="feed:category">
  230.   <a>
  231.   <xsl:attribute name="href">fr:<xsl:value-of select="./@scheme"/></xsl:attribute>
  232.   <xsl:value-of select="./@term"/>
  233.   </a>, 
  234. </xsl:template>
  235.  
  236. <xsl:template match="feed:author">
  237.   <xsl:value-of select="feed:name"/>, 
  238. </xsl:template>
  239.  
  240. </xsl:stylesheet>
  241.